import React from "react"
import {getEvent} from "./api/index"
import queryString from "query-string"
import { NavBar, Icon, Tabs, WhiteSpace  } from 'antd-mobile';
import  "./personhome.css"
class Dongtai extends React.Component{
    constructor(props){
        super(props)
    }
    componentDidMount(props){
        let c = queryString.parse(this.props.location.search)
        getEvent(c.uid).then(body=>body.json())
        .then(res=>{
            console.log(res)
        })
    }
    Huitui(){
        this.props.history.go(-1)
    }
    render(){
        return(
            <div>
                <NavBar
                    mode="light"
                    icon={<Icon type="left" onClick={this.Huitui.bind(this)}/>}
                    onLeftClick={() => console.log('onLeftClick')}
                    rightContent={[
                        <img src={require('./img/音乐.png')}/>,
                    ]}
                    >关注</NavBar>
                <div className='wenben10'>
                   <p> 暂无相关动态</p>
                </div>
            </div>
        )
    }
}

export default Dongtai